//
//  ViewController.m
//  001--oc对象的本质
//
//  Created by H on 2019/2/20.
//  Copyright © 2019 LogicEDU. All rights reserved.
//

#import "ViewController.h"
#import "Person.h"

@interface ViewController ()

@end

@implementation ViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    
    Person * p = [Person alloc];
    p.age = 10;
    
    Person * p1 = [p init];
    Person * p2 = p;

    NSLog(@"\np1.age %d\np2.age%d",p1.age,p2.age);
}


@end
